package com.example.mychat.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class Thumb {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long messageId;

    private int num = 0;

    public Thumb() {

    }

    public Thumb(Long messageId, int num) {
        this.messageId = messageId;
        this.num = num;
    }
}
